{template '../../header'}
{template '../../left'}

<div class="card">
    <div class="card-header">
        标签文章
    </div>
    <div class="card-body">
        <table class="table table-sm table-striped table-hover">
            <thead>
            <th>
                文章ID
            </th>
            <th>
                商户
            </th>
            <th>
                标题
            </th>
            <th>
                栏目
            </th>
            <th>
                类型
            </th>
            <th>
                移除
            </th>
            </thead>
            <tbody>
                {loop $rows $row}
                <tr>
                    <td>
                        {$row['id']}
                    </td>
                    <td>
                        {$row['nickname']}
                    </td>
                    <td>
                        <a href="/cms/article/page/id/{$row['id']}" target="_blank">{$row['title']}</a>
                    </td>
                    <td>
                        {$row['column_title']}
                    </td>
                    <td>
                        {$row['type_title']}
                    </td>
                    <td>
                        <button type="button" class="btn btn-danger btn-sm"  onclick="confirm('你确定要删除吗？') && (location.href='/admin/cms/tag/article?do=remove&tag_id={$tag_id}&article_id={$row['id']}')"><i class="fa fa-trash-o"></i></button>
                    </td>
                </tr>
                {/loop}
            </tbody>
        </table>
        {template '../../page'}
    </div>
</div>

{template '../../footer'}   